package com.jiawa.train.batch.feign;

import com.jiawa.train.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;

//@FeignClient(name = "business", url = "http://127.0.0.1:8002/business" )
@FeignClient(name = "business")
public interface BusinessFeign {

    //向business模块发起请求
    @GetMapping("/business/admin/dailyTrain/genDaily/{date}")
    public Result genDaily(@PathVariable @DateTimeFormat(pattern = "yyyy-MM-dd") Date date);
}
